import request from '@/utils/request'

// 查询工作流配置列表
export function listDispose(query) {
  return request({
    url: '/activiti/dispose/list',
    method: 'get',
    params: query
  })
}

// 查询工作流配置详细
export function getDispose(id) {
  return request({
    url: '/activiti/dispose/' + id,
    method: 'get'
  })
}

// 新增工作流配置
export function addDispose(data) {
  return request({
    url: '/activiti/dispose',
    method: 'post',
    data: data
  })
}

// 修改工作流配置
export function updateDispose(data) {
  return request({
    url: '/activiti/dispose',
    method: 'put',
    data: data
  })
}

// 删除工作流配置
export function delDispose(id) {
  return request({
    url: '/activiti/dispose/' + id,
    method: 'delete'
  })
}

// 导出工作流配置
export function exportDispose(query) {
  return request({
    url: '/activiti/dispose/export',
    method: 'get',
    params: query
  })
}